package com.sm.ali.entity;

import lombok.Getter;
import org.springframework.stereotype.Component;

/**
 * <p>IJPay 让支付触手可及，封装了微信支付、支付宝支付、银联支付常用的支付方式以及各种常用的接口。</p>
 *
 * <p>不依赖任何第三方 mvc 框架，仅仅作为工具使用简单快速完成支付模块的开发，可轻松嵌入到任何系统里。 </p>
 *
 * <p>IJPay 交流群: 723992875</p>
 *
 * <p>Node.js 版: https://gitee.com/javen205/TNWX</p>
 *
 * <p>支付宝配置 Bean</p>
 *
 * @author Javen
 */
@Component
@Getter
public class AliPayBean {

    private String resourcePath = this.getClass().getClassLoader()
            .getResource("/").getPath();

    private String appId = "2021001166670132";
    private String privateKey = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCujrUoOW5Wzi4KDg2nDkV0ToDMkutfNADmo+lBHD3f1fhs0FzK7Mq5bHqj+nzFBEMtrgUpAfKp7csB2ejfX/kDQWov+TckxZ969u38I3twfb7azDGuhO6Yc2ul/Cbbz59gW9pzK+VXZQtcpFVl2ED/GuiNPuk4vRgTgMvjzdIeNPkamsZML3Dy+QDnnoBKipLWy8fcikL/hkbAC3FqAeR148LrEIwK1aKSpLZZhKzeV0FOGjpYbhD6XQutpzMTMW39eCQiAeyZ/AVN98mAQ8/Qq8e4twVrEKAOc/fC07yHrkRRyq/G+NLcG64VKTRkypM13hHDSXKgqO5urY0yGwTnAgMBAAECggEBAIGijBk+ZZpj7r8a5rq9F4mjz3WeWtzOQykGa/El5zG3t5IgP/mYV4nTbVUgbs7mNnnTNhPZVX0rk0thqNdTcBwh1ZmhLHnLpn/sqJtLQp4tVLMrWG4yXPutJDIWDEnMbKFkNdy4qc74xLJdfOpw6vxJ4JEdOpkfnaTGTyV0MmqpVJYOYWjxLnkZKyLHvdxZ/pxENNMqpsTlPeFXv4V69RIDfK4AEhN7NjnJudntS+IAgZpT0PfhOsnM8H5d7Xgn+ues2EYLPAYAWQVuNCKJwjgrtlnBuP6oAuyX1GRT4kL8rZQL5y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HNrpfwm28+fYFvacyvlV2ULXKRVZdhA/xrojT7pOL0YE4DL483SHjT5GprGTC9w8vkA556ASoqS1svH3IpC/4ZGwAtxagHkdePC6xCMCtWikqS2WYSs3ldBTho6WG4Q+l0LraczEzFt/XgkIgHsmfwFTffJgEPP0KvHuLcFaxCgDnP3wtO8h65EUcqvxvjS3BuuFSk0ZMqTNd4Rw0lyoKjubq2NMhsE5wIDAQAB";
    private String appCertPath = resourcePath + "appCertPublicKey_2021001166670132.crt";
    private String aliPayCertPath = resourcePath + "alipayCertPublicKey_RSA2.crt";
    private String aliPayRootCertPath = resourcePath + "alipayRootCert.crt";
    private String serverUrl = "https://openapi.alipay.com/gateway.do";
    private String domain = "http://api.xof.cn/xym/payment/";

}
